package com.atguigu.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author : leimingchao
 * @version V1.0
 * @Project: mybatis
 * @Package com.atguigu.bean
 * @Description: TODO
 * @date Date : 2021年05月23日 12:29
 * 封装分页查询数据
 */
public class PageBean implements Serializable {
    private int start;
    private int end;
    private int count;
    private List<Employee> employees;

    public PageBean() {
    }

    public PageBean(int start, int end, int count, List<Employee> employees) {
        this.start = start;
        this.end = end;
        this.count = count;
        this.employees = employees;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "start=" + start +
                ", end=" + end +
                ", count=" + count +
                ", employees=" + employees +
                '}';
    }
}
